package tiantao.taogu.user.service;

import java.util.List;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import tiantao.taogu.TgEnum.AuthrityEnum;
import tiantao.taogu.user.bean.TgPersionInfo;
import tiantao.taogu.user.bean.TgTokenObject;
import tiantao.taogu.user.bean.TgUserInfo;

/**
 * 桃谷用户信息查询
 * @author renyongzhen
 *
 */
public interface UserInfoService {

	/**
	 * 查询当前用户信息
	 * @param guid  用户id
	 * @param userTypeId  用户角色
	 * @return
	 */
	@RequestMapping("/taogu/user/getUserInfo")
	public TgUserInfo getUserInfo(@RequestParam("guid")String guid,@RequestParam("userTypeId")Integer userTypeId);

	/**
	 * 获取就诊人集合
	 * @param userGuid  用户guid
	 * @param hospitalGuid  医院guid
	 * @return
	 */
	@RequestMapping("/taogu/user/getPersionList")
	public List<TgPersionInfo> getPersionList(@RequestParam("userGuid")String userGuid,@RequestParam("hospitalGuid")String hospitalGuid);

	/**
	 * 验证token
	 * @param token
	 * @param authrityEnumId  AuthrityEnum业务id
	 * @return
	 */
	@RequestMapping("/taogu/user/verificationToken")
	public TgTokenObject verificationToken(@RequestParam("token")String token ,@RequestParam("authrityEnumId") String  authrityEnumId);

	

}
